package edu.hwadee.entity;

import java.util.Date;
import java.util.HashSet;
import java.util.Set;

/**
 * Companypaper entity. @author MyEclipse Persistence Tools
 */

public class Companypaper implements java.io.Serializable {

	// Fields

	private Integer companyPaperId;
	private Company companyByCompanyId;
	private Company companyByCertificationUnit;
	private Paper paper;
	private String number;
	private String scannedCopy;
	private Date effectiveDate;
	private Date dueDate;
	private Boolean isEffective;
	private String note;
	private Date checkDate;
	private Short checkState;
	private Set companypaperrecords = new HashSet(0);

	// Constructors

	/** default constructor */
	public Companypaper() {
	}

	/** minimal constructor */
	public Companypaper(Integer companyPaperId) {
		this.companyPaperId = companyPaperId;
	}

	/** full constructor */
	public Companypaper(Integer companyPaperId, Company companyByCompanyId, Company companyByCertificationUnit,
			Paper paper, String number, String scannedCopy, Date effectiveDate, Date dueDate, Boolean isEffective,
			String note, Date checkDate, Short checkState, Set companypaperrecords) {
		this.companyPaperId = companyPaperId;
		this.companyByCompanyId = companyByCompanyId;
		this.companyByCertificationUnit = companyByCertificationUnit;
		this.paper = paper;
		this.number = number;
		this.scannedCopy = scannedCopy;
		this.effectiveDate = effectiveDate;
		this.dueDate = dueDate;
		this.isEffective = isEffective;
		this.note = note;
		this.checkDate = checkDate;
		this.checkState = checkState;
		this.companypaperrecords = companypaperrecords;
	}

	// Property accessors

	public Integer getCompanyPaperId() {
		return this.companyPaperId;
	}

	public void setCompanyPaperId(Integer companyPaperId) {
		this.companyPaperId = companyPaperId;
	}

	public Company getCompanyByCompanyId() {
		return this.companyByCompanyId;
	}

	public void setCompanyByCompanyId(Company companyByCompanyId) {
		this.companyByCompanyId = companyByCompanyId;
	}

	public Company getCompanyByCertificationUnit() {
		return this.companyByCertificationUnit;
	}

	public void setCompanyByCertificationUnit(Company companyByCertificationUnit) {
		this.companyByCertificationUnit = companyByCertificationUnit;
	}

	public Paper getPaper() {
		return this.paper;
	}

	public void setPaper(Paper paper) {
		this.paper = paper;
	}

	public String getNumber() {
		return this.number;
	}

	public void setNumber(String number) {
		this.number = number;
	}

	public String getScannedCopy() {
		return this.scannedCopy;
	}

	public void setScannedCopy(String scannedCopy) {
		this.scannedCopy = scannedCopy;
	}

	public Date getEffectiveDate() {
		return this.effectiveDate;
	}

	public void setEffectiveDate(Date effectiveDate) {
		this.effectiveDate = effectiveDate;
	}

	public Date getDueDate() {
		return this.dueDate;
	}

	public void setDueDate(Date dueDate) {
		this.dueDate = dueDate;
	}

	public Boolean getIsEffective() {
		return this.isEffective;
	}

	public void setIsEffective(Boolean isEffective) {
		this.isEffective = isEffective;
	}

	public String getNote() {
		return this.note;
	}

	public void setNote(String note) {
		this.note = note;
	}

	public Date getCheckDate() {
		return this.checkDate;
	}

	public void setCheckDate(Date checkDate) {
		this.checkDate = checkDate;
	}

	public Short getCheckState() {
		return this.checkState;
	}

	public void setCheckState(Short checkState) {
		this.checkState = checkState;
	}

	public Set getCompanypaperrecords() {
		return this.companypaperrecords;
	}

	public void setCompanypaperrecords(Set companypaperrecords) {
		this.companypaperrecords = companypaperrecords;
	}

}